<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\LinkPager;

/* @var $this yii\web\View */
/* @var $searchModel common\models\search\NewsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = $column[$_GET['id']]['name'].'新闻-锐锋堂刀剑网';
$this->registerCssFile('/css/css.css');
?>
<div class="now">
		<div class="now_ad">
			您现在的位置：<a href='/site/index.html'>首页</a> > <a href='/news/index.html'>新闻中心</a> > <?=$column[$_GET['id']]['name']?><span style="float: right; font-size: 14px;">
				<form method="post" name="infosearch" id="infosearch" action="">
					搜索：<input type="text" name="keyword" id="keyword" value=""
						class="so"><input type="submit" value="提交" class="button">
				</form>
			</span>


		</div>

		<!--list-->

		<div class="list_center_box">

			<div class="ww_list_box">
				<ul>
				<?php if(!empty($data)):?>
				<?php foreach($data as $val):?>
					<li>
						<div class="ww_infor_box">
							<div class="ww_infor_row">
							
							<div class='pic'>
							<img alt="" width='180' src="<?=$val['logo']?>">
							</div>
								<div class="ww_infor_row_right ww_w650">
									<div class="gw_school_row_title">
										<a href="/news/view-<?=$val['id']?>.html"
											target="_blank"><?=$val['title']?></a>
									</div>
									<div class="clear"></div>
									<div class="gw_school_row_listinfo">
										<span class="time"><i class="focus-type"></i><a
											href='#'>分类名称：<?=$column[$val['pid']]['name']?></a></span> <span>发表于：<i class="focus-date"></i><?=date('Y-m-d H:i:s',$val['createtime'])?>
										
										</span> <span>阅读(<i class="focus-search"></i><?=$val['look']?>)
										</span>
									</div>
									<div class="gw_school_row_innertxt">
										<?=mb_strimwidth(strip_tags($val['message']), 0, 180, '...','utf8')?>
									</div>
								</div>
							</div>
						</div>
					</li>
					<?php endforeach;?>
					<?php endif;?>
				</ul>
				<div class="clear" style="height: 15px;"></div>
			</div>

			<div class="list_center_right right">
				<div class="hot_new">
				<?php if(!empty($column)):?>
				<?php foreach($column as $val):?>
				<?php if(isset($cdata[$val['id']])):?>
					<div class="main_infor_left">
						<div class="main_infor_heard">
							<div class="titleft"><?=$val['name']?></div>
							<div class="titright">
								<a href='/news/list-<?=$val['id']?>.html'>更多</a>
							</div>
						</div>
						<ul class="right_for_hot">
						<?php foreach($cdata[$val['id']] as $v):?>
							<li><span class="left">▪</span><a class="mid"
								target="_blank" href='/news/view-<?=$v['id']?>.html'><?=$v['title']?></a><span
								class="right"><?=date('Y-m-d',$v['createtime'])?></span>
							<div class="clear"></div></li>
						<?php endforeach;?>
						</ul>
					</div>
					<?php endif;?>
				<?php endforeach;?>
				<?php endif;?>
				</div>

			</div>

			<!--分页-->
			<div class='Inside_pages'>
			<div class="Pagination">
						<?= LinkPager::widget([ 
    'options'=>['class'=>'Paging'],
    'pagination' => $pages, 
	'firstPageLabel' => '首页',
	'lastPageLabel' => '尾页',
    'nextPageLabel' => '下一页', 
    'prevPageLabel' => '上一页',
    'maxButtonCount'=>4
]); ?>
			</div></div>
			<div class="clear" style="height: 20px;"></div>
		</div>
	</div>